package synchro;

import java.io.IOException;

/**
 * @author DELL
 * @create 2017-09-22 17:54
 */
public class LogFileThread2 implements Runnable {
    private LogFile2 logFile;
    private String message;

    public LogFileThread2(LogFile2 logFile, String message) {
        this.logFile = logFile;
        this.message = message;
    }

    @Override
    public void run() {
        try {
            logFile.writeEntry(message);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
